<?php use_helper('I18N')?>
<div class="thumb w-<?php echo $w?> h-<?php echo $h?>">



<?php 






?>

<?php if(empty($asset)){?>
	
    <?php echo image_tag('/sfAssetsLibraryPlugin/images/na.jpg' , array('width'=>'84','height'=>'84'))?>

<?php }elseif($asset->getType()=='image'){?>
    <?php 
        $file_pathes = $asset->getFilepaths();
        $path = sfAssetToolkit::_to_web_image_path($file_pathes['small']);
        echo image_tag($path,array('width'=>$w,'height'=>$h));
    ?>
<?php }else{?>
	
	<?php echo asset_tag_elem( $asset , $w , $h )?>
	
<?php }?>



</div>
<!--<div class="sizes"><?php //echo __('size')?> : <?php //echo $w?> x <?php //echo $h?></div>-->